# Hard line breaks
A line break (not in a code span or HTML tag) that is preceded by two or more spaces and does not occur at the end of a block is parsed as a hard line break (opens new window) (rendered in HTML as a <br />
tag):
Example 654
Markdown | HTML | Demo |
---|---|---|
|
|
For a more visible alternative, a backslash before the line ending (opens new window) may be used instead of two spaces:
Example 655
Markdown | HTML | Demo |
---|---|---|
|
|
More than two spaces can be used:
Example 656
Markdown | HTML | Demo |
---|---|---|
|
|
Leading spaces at the beginning of the next line are ignored:
Example 657
Markdown | HTML | Demo |
---|---|---|
|
|
Example 658
Markdown | HTML | Demo |
---|---|---|
|
|
Line breaks can occur inside emphasis, links, and other constructs that allow inline content:
Example 659
Markdown | HTML | Demo |
---|---|---|
|
|
Example 660
Markdown | HTML | Demo |
---|---|---|
|
|
Line breaks do not occur inside code spans
Example 661
Markdown | HTML | Demo |
---|---|---|
|
|
Example 662
Markdown | HTML | Demo |
---|---|---|
|
|
or HTML tags:
Example 663
Markdown | HTML | Demo |
---|---|---|
|
|
Example 664
Markdown | HTML | Demo |
---|---|---|
|
|
Hard line breaks are for separating inline content within a block. Neither syntax for hard line breaks works at the end of a paragraph or other block element:
Example 665
Markdown | HTML | Demo |
---|---|---|
|
|
Example 666
Markdown | HTML | Demo |
---|---|---|
|
|
Example 667
Markdown | HTML | Demo |
---|---|---|
|
|
Example 668
Markdown | HTML | Demo |
---|---|---|
|
|